Well in Python 2.7, 2/5 is an integer division, resulting in 0. Anything powered by 0 is 1, which means that the final result for r is ae*1.
In Python 3.3, 2/5 results in 0.4 and probably gives the result you expect.
Regarding the difference in console only: I have no differences.