made target.py work the same between different computers
speed optimization for fractions