EV3 Motor Active Braking

I have the brickpi set up with an ev3 motor, and I was wondering if there was any way to have the motor rotate to a position, then stop and hold that position. Even with a stop or short reverse in the code it still doesnt stop on a dime.

I am programming in python on a rapsberry pi

Any help would be appreciated