[python] Make it possible to pass tick and pattern to the transport_positition constructor.