modifying page_object.urlparse so that it works for python version 2.7.7+

@clytwynec @jzoldak 

https://openedx.atlassian.net/browse/TE-393
I think you need to check if the `:` is in `result.netloc` instead of url.  That will give you just the `localhost:8000` part, and it won't find the url in the `http://` part.