Optimized Django code

Takes half the time now to return JSON - WOHO